#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        vector<int> ret;
        ret.resize(nums.size());
        ret[0] = nums[0];
        for (int i = 1; i < nums.size(); i++)
            ret[i] = ret[i - 1] + nums[i];
        return ret;
    }
};